package oop2;

/**
 * @author oldliu
 * @since 1.0
 */
//斯基
public class OldDriver {
    String name;
    public OldDriver(String name){
        this.name=name;
    }
    public void drive(Car c){
        System.out.println(name+"开着小轿车到处浪");
        c.show();
    }
    //开公交
    public void drive(Bus b){
        System.out.println(name+"在公交公司上班");
        System.out.println("开"+b.no+",从"+b.from+"到"+b.to);
        b.intro();
    }
    public void drive(Taxi t){
        System.out.println(name+"开出租车谋生");
        t.introduce();
    }
}
